package quartz.quartzdemo.controller;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import quartz.quartzdemo.mapper.TestMapper;
import quartz.quartzdemo.vo.Test;

import java.util.List;

@RestController
public class DataTestController {
    @Autowired
    private TestMapper testMapper;
    @GetMapping("getTest")
    public Test getTest(){
        //testMapper.
        List<Test> tests = testMapper.selectAll();
        return tests.get(0);
    }
}
